import Mongoose from "mongoose";
import { IMovie } from "../public/interface";
const movieSchema = new Mongoose.Schema<IMovie>({
  name: String,
  types: [String],
  areas: [String],
  timeLong: Number,
  isHot: Boolean,
  isComing: Boolean,
  isClassic: Boolean,
  description: String,
  poster: String
})

export default Mongoose.model('movie', movieSchema)